import type { User,GoodsList,GoodsSpecification,GoodsServe } from "./data"
/**
 * 接口返回信息
 */

//登录
export interface ResultLogin{
  access_tokens:string //令牌
  userInfo: User //用户信息
}

//登录
export interface ResultGoodsList{
  commodity_image: string //图片路径
  commodity_id: string //商品id
  commodity_price: number //商品价格
  commodity_discount: number //打折价格
  commodity_msg: string //商品描述信息
  commodity_inventory: number //是否还有货源
}

//商品详情
export interface ResultGoodsDetail {
  commodity_serve:GoodsServe[] //商品服务
  commodity_specification:GoodsSpecification[] //商品规格详情
  commodity_image: string //图片路径
  commodity_id: string //商品id
  commodity_msg: string //商品描述信息
}